home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI DriveID Sample 06⁄07 ƒ / Src / SCSIDriveIDSample.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-16  |  1007 b   |  43 lines  |  [TEXT/KAHL]

  1. /*                                SCSIDriveIDSample.c                                */
  2. /*
  3.  * SCSIDriveIDSample.c
  4.  * Copyright © 1992-94 Apple Computer Inc. All Rights Reserved.
  5.  */
  6. /*
  7.  * This sample shows how to convert from drive ID or volume name/id to the
  8.  * associated SCSI Bus ID using both the old and new SCSI Managers. It presumes
  9.  * Think C, but should be easy to convert to MPW.
  10.  */
  11. #include <Folders.h>
  12. #include <stdio.h>
  13. #ifdef THINK_C
  14. #include <console.h>
  15. #endif
  16.  
  17. void                    ShowAllDriveQueueElements(void);
  18. void                    ShowAllMountedVolumeNames(void);
  19. void                    ShowRegisteredSCSIDevices(void);
  20. void                    ShowSystemVolumeName(void);
  21.  
  22. void
  23. main(
  24. #ifdef THINK_C
  25.         int                    argc,
  26.         char                **argv
  27. #endif
  28.     )
  29. {
  30. #ifdef THINK_C
  31.         argc = ccommand(&argv);
  32. #endif
  33.         printf("*** System Volume Name ***\n");
  34.         ShowSystemVolumeName();
  35.         printf("*** Driver Queue Elements ***\n");
  36.         ShowAllDriveQueueElements();
  37.         printf("\n*** Mounted Volumes ***\n");
  38.         ShowAllMountedVolumeNames();
  39.         printf("\n*** Registered Devices ***\n");
  40.         ShowRegisteredSCSIDevices();
  41. }
  42.  
  43.